function newsitem(){
	$.ajax({
		url:URL+'Home/New/newsitem',
		type:'GET',
		success:function(data){
			$.each(data.newsitem,function(ixd,obj){
				var html="",
					time=obj.time,
					title=obj.title,
					type=obj.type,
					id=obj.id;
					html+=
					'<li data-id="'+id+'">'+
						'<div>'+
							'<span class="g-title-s">['+type+']</span>'+
							'<a href="#" class="g-title-content" title="'+title+'">'+title+'</a>'+
						'</div>'+
						'<span class="g-date-s">'+time+'</span>'+
					' </li>'
					;
					$(".rightContents-items").append(html);
			})
		},
		error:function(){}
	});
}
newsitem();

$(".rightContents-items").on("click","li",function(e){
	e.preventDefault();
	var ids=$(this).attr("data-id");
	location.href="/Home/Newsdetaili/newsdetaile?id="+ids;
	$(".newscontents").html("");
});



